<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>title</h1>
        <img v-bind:src="imgSrc" v-bind:width="imgWidth" alt="">

        <!-- 简写 -->
        <img :src="imgSrc" :width="imgWidth" alt="">
    </div>

    <script>
        const vm = new Vue({
            el:"#app",
            data(){
                return{
                    title:"Hello Vue",
                    imgSrc:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fossweb-img.qq.com%2Fupload%2Fwebplat%2Finfo%2Fdnf%2F201011%2F1291084420_-1719592020_29259_imageAddr.jpg&refer=http%3A%2F%2Fossweb-img.qq.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1665665693&t=030617f1341d5bb79dd718a644010b1f",
                    imgWidth:400
                }
            }
        })
    </script>
</body>
</html>